﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddMember.aspx.cs" Inherits="Admin_AddMember" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="page-heading">
        <h1>
            Add Member</h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;</td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <table border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr valign="top">
                            <td>
                                <!--  start step-holder -->
                                <!--  end step-holder -->
                                <!-- start id-form -->
                                <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                    <tr>
                                        <th valign="top">
                                            Email:</th>
                                        <td>
                                            <input type="text" class="inp-form" id="txtEmail" runat="server" />
                                        </td>
                                        <td>
                                            <asp:Literal ID="lblMessage" Visible="false" Text="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'> This email is already in use!</span></div>"
                                                runat="server"></asp:Literal>
                                                 <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'> Email address is not empty</span></div>"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'>Invalid email address</span></div>"
                        ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Password:</th>
                                        <td>
                                            <input type="password" class="inp-form" id="txtPassword" runat="server" /></td>
                                        <td>
                                         <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" ErrorMessage="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'> Password is not empty</span></div>"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Confirm Password:</th>
                                        <td>
                                            <input type="password" class="inp-form" id="txtRetypePassword" runat="server" /></td>
                                        <td>
                                               <asp:CompareValidator Display="Dynamic" ControlToValidate="txtRetypePassword" ControlToCompare="txtPassword" ID="cpass" runat="server" ErrorMessage="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'> Compare invalid password</span></div>"></asp:CompareValidator> 
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Full Name:</th>
                                        <td>
                                            <input type="text" class="inp-form" id="txtFullName" runat="server" /></td>
                                        <td>
                                        <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFullName" ErrorMessage="<div class='error-left'></div> <div class='error-inner'><span style='color: White;'> FullName is not empty</span></div>"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Sex:</th>
                                        <td style="font-weight: bold;">
                                            <p style="float: left; margin-right: 13px;">
                                                <input type="radio" class="inp-form-rdo" checked="True" id="rdoMale" runat="server" />&nbsp;Mr</p>
                                            <p style="float: left; margin-right: 13px;">
                                                <input type="radio" class="inp-form-rdo" id="rdiFemale" runat="server" />&nbsp;Ms</p>
                                            <input type="radio" class="inp-form-rdo" id="rdoML" runat="server" />&nbsp;Mr.Ms
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Address:</th>
                                        <td>
                                            <input type="text" class="inp-form" id="txtAddress" runat="server" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Tel:</th>
                                        <td>
                                            <input type="text" class="inp-form" id="txtTel" runat="server"  onkeyup="this.value = FormatNumber(this.value);" /></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top">
                                            Fax:</th>
                                        <td>
                                            <input type="text" class="inp-form" id="txtFax" runat="server" onkeyup="this.value = FormatNumber(this.value);" /></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width:120px;">
                                            Gold Member:</th>
                                        <td>
                                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                <contenttemplate>
                                                    <div class="divlast1">
                                                        <asp:CheckBox ID="checkGold" runat="server" AutoPostBack="True" OnCheckedChanged="checkGold_CheckedChanged" />
                                                    </div>
                                                 
                                                    <div id="div" runat="server" class="MemAdd">
                                                        <div class="divlast1" style="float: left; margin-left: -120px; font-weight: bold;
                                                            margin-top: 20px;">
                                                            Membership Fee:</div>
                                                        <div class="divlast1">
                                                            <asp:DropDownList ID="ddlFee" runat="server" CssClass="styledselect_form_11"  >
                                                            </asp:DropDownList>
                                                        </div>
                                                        <br />
                                                        
                                                       
                                                       
                                                       
                                                        
                                                    </div>
                                                </contenttemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr id="tr" runat="server">
                                        <th valign="top" style="line-height:15px;">
                                            Start Date GoldMember:</th>
                                        <td>
                                            <asp:DropDownList ID="d" runat="server" CssClass="styledselect-day">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="m" runat="server" CssClass="styledselect-month">
                                            </asp:DropDownList>
                                            <asp:DropDownList ID="y" runat="server" CssClass="styledselect-year">
                                            </asp:DropDownList>
                                            <a href="" id="date-pick">
                                                <img src="images/forms/icon_calendar.jpg" alt="" /></a></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>
                                            &nbsp;</th>
                                        <td valign="top">
                                            <asp:Button ID="btnsave" CssClass="form-submit" Text="Save" runat="server" OnClick="btnsave_Click" />
                                            <asp:Button ID="btnexit" CssClass="form-reset" Text="Reset" runat="server" OnClick="btnexit_Click"
                                                CausesValidation="False" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <!-- end id-form  -->
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    <div class="clear">
                    </div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;</td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <div class="clear">
        &nbsp;</div>
</asp:Content>
